package com.horsecoder.im.common.protocol.context.chain.request;

import com.horsecoder.im.common.protocol.BaseMessage;

import java.util.Map;
import java.util.UUID;

/**
 * Author: Zhu yuhan
 * Email: zhuyuhan2333@qq.com
 * Date: 2022/3/16 11:19 上午
 **/
public class Request extends BaseMessage {

    public Request(String id, String type, String messageType, String message, String identity, String receiver, String url) {
        super(id, type, messageType, message, identity, receiver, url);
    }

    public Request(String id, String type, String messageType, String message, String identity, String receiver, String url, Map<String, String> metadata) {
        super(id, type, messageType, message, identity, receiver, url, metadata);
    }

    public Request() {
        setId(UUID.randomUUID().toString().substring(0, 32).replace("-", ""));
    }
}
